package com.example.chapter1.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ProController {


    @Value("${com.example.chatper1.name}")
    private String name;
    @Value("${com.example.chatper1.dowhat}")
    private String dowhat;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDowhat() {
        return dowhat;
    }

    public void setDowhat(String dowhat) {
        this.dowhat = dowhat;
    }
}
